package com.yiqi.zhiyuan.entity.enums;

/**
 * @author lijuwen
 * @email 1440919311@qq.com
 * @date 2017/11/6 11:00
 * @apiNote 发送验证码标识
 */

public enum VCodeType {
    /**
     * 注册
     */
    REGISTER(0, "注册"),
    /**
     * 登录
     */
    LOGIN(1, "登录"),

    /**
     * 手机号
     */
    PHONE(3, "手机号"),

    /**
     * 重置密码
     */
    RESET(2, "重置密码");

    private final int type;
    private final String typeName;

    VCodeType(int type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public int type() {
        return type;
    }

    public String typeName() {
        return typeName;
    }

}
